package com.zjitc.dao;


import com.zjitc.pojo.User;
import org.apache.ibatis.annotations.Param;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/28 14:33
 * @description:
 */

public interface UserDao {

  int userNameCount(String username);

  User findByUserNameAndPassword(@Param("username")String username,
                                 @Param("password")String password);
  void insert(User user);

  User findByUsername(String username);


  String getUserQuestion(String username);


  int userEmailCount(String email);

  int newPassword(String password);

  String findOldPassword(User user);
  int resetPassword(User user);

  int update(User user);


}
